package com.huaxin.hxmodulestatisticalanalysis.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 功率对比数据对象
 */
public class PowerComparisonVO {
    @Schema(description = "时间窗口")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeWindow; // 时间窗口，如 2025-10-31 14:30:00
    @Schema(description = "平均有功功率")
    private BigDecimal avgActivePower;      // 平均有功功率 (kW)
    @Schema(description = "平均无功功率")
    private BigDecimal avgReactivePower;    // 平均无功功率 (kVar)
    @Schema(description = "平均视在功率")
    private BigDecimal avgApparentPower;    // 平均视在功率 (kVA)

    // Getters and Setters
    public LocalDateTime getTimeWindow() {
        return timeWindow;
    }

    public void setTimeWindow(LocalDateTime timeWindow) {
        this.timeWindow = timeWindow;
    }

    public BigDecimal getAvgActivePower() {
        return avgActivePower;
    }

    public void setAvgActivePower(BigDecimal avgActivePower) {
        this.avgActivePower = avgActivePower;
    }

    public BigDecimal getAvgReactivePower() {
        return avgReactivePower;
    }

    public void setAvgReactivePower(BigDecimal avgReactivePower) {
        this.avgReactivePower = avgReactivePower;
    }

    public BigDecimal getAvgApparentPower() {
        return avgApparentPower;
    }

    public void setAvgApparentPower(BigDecimal avgApparentPower) {
        this.avgApparentPower = avgApparentPower;
    }
}